﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SP.Domain.Model
{
    [Table("sp_RoleTable")]
    public class RoleTable
    {
        /// <summary>
        /// 角色id
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required]
        [StringLength(50)]
        public string RoleName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = System.DateTime.Now;
        /// <summary>
        /// 角色状态
        /// </summary>
        public bool RoleState { get; set; } = true;
        public bool Isdel { get; set; } = false;
    }
}